{include file="public/header" /}
<style>
    .gray-bg {
        background: #fff;
    }

    .wrapper {
        padding: 0px;
    }

    .asdh5 h5 {
        border-top: 1px dotted #ccc;
        padding-top: 20px;
        margin-top: 20px;
    }

    #hidetent {
        display: none;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">推荐：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="0" name="tuijian" {present name="name"}{eq name="name.tuijian" value="0"}checked{/eq}{else /}checked{/present}>否
                                </label>
                                <label>
                                    <input type="radio" value="1" name="tuijian" {present name="name"}{eq name="name.tuijian" value="1"}checked{/eq}{else /}checked{/present}>是
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">推荐截止：</label>
                        <div class="col-sm-9">
                            <input name="tuijian_expire" type="text" id="time" class="form-control layui-input" value="{present name='name'}{neq name='$name.tuijian_expire' value='0'}{$name.tuijian_expire}{/neq}{/present}" autocomplete="off"  style="width: 30%;float: left;">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">观众数：</label>
                        <div class="col-sm-9">
                            <input name="count_now" type="number" class="form-control" value="{present name='name'}{$name.count_now}{/present}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input name="sort" type="number" class="form-control" value="{present name='name'}{$name.sort}{/present}">
                        </div>
                    </div>

                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })

        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render ({
                elem : '#time', //指定元素
                type : 'datetime',
                trigger: 'click'
            });
        });
    })
</script>
{include file="public/bottom" /}
 
